package com.itheima.iostream;

import java.io.FileInputStream;
import java.util.Properties;

public class IoProperties {
    public static void main(String[] args){
        FileInputStream fin =null;
        try{
            Properties pp = new Properties();

            fin = new FileInputStream("E:\\Java_pro\\oop\\src\\com\\itheima\\iostream\\pro.properties");
            pp.load(fin);

            String name = pp.getProperty("name");
            String number = pp.getProperty("number");
            String salary = pp.getProperty("Salary");

            System.out.println("name:"+name+"\nnumber:"+number+"\nsalary:"+salary);

        }catch(Exception e){
            e.printStackTrace();
        }finally{
            try{
                fin.close();
            }catch(Exception e){
                e.printStackTrace();
            }

        }

    }
}
